/**
 * 
 */
package de.cbf.cam.map2d.model;

import java.util.ArrayList;
import java.util.List;

import de.cbf.cam.map2d.interfaces.SelectableShape;

/**
 * @author Stefan Alter
 *
 */
public class Model {
	private static Model instance = new Model();
	private List<SelectableShape> selectableObjects = new ArrayList<SelectableShape>();
	/**
	 * 
	 */
	public Model() {
		
	}
	
	
	public static Model getInstance() {
		return instance;
	}


	public List<SelectableShape> getSelectableObjects() {
		return selectableObjects;
	}


	public void addSelectableObject(SelectableShape selectableObject) {
		selectableObjects.add(selectableObject);
	}
	public boolean removeSelectableObject(SelectableShape selectableObject) {
		return selectableObjects.remove(selectableObject);
	}
}
